<?php
/**
 * TestGuest Version1.0
 * ================================================
 * Copy 2017-2018 zxj
 * Web: http://www.zhaoxiaojie.club
 * ================================================
 * Author: Zxj
 * Date: 17/8/2
 * Time: 上午9:01
 */
session_start();
define('zxj',true);
define('CSS','register');
require_once dirname(__FILE__).'/includes/common.inc.php';
$_start_time = _runtime();

//判断是否提交了数据
if(!empty($_GET['action'])){

    if($_GET['action']=='register'){

//        if(!(strtolower($_POST['code'])==strtolower($_SESSION['code']))){
//
//            _alert_back('验证码不正确!');
//
//        }

        //引入验证文件
        //验证用户名,并将其放入空数组中
//        $_clean = array();
//        $_clean['username'] = _check_username($_POST['username']);
//        $_clean['password'] = _check_password($_POST['password'],$_POST['passwordt']);
//        $_clean['question'] = _check_question($_POST['question']);
//        $_clean['answer'] = _check_answer($_POST['answer']);
//        $_clean['sex'] = _check_answer($_POST['sex']);
//        $_clean['face'] = _check_answer($_POST['face']);
//
//          $_clean['email'] = _check_email($_POST['email']);
//          $_clean['qq'] = _check_qq($_POST['qq']);
          $_clean['url'] = _check_url($_POST['url']);


         print_r($_POST['email']);

    }

}

?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>会员注册</title>
<?php include_once 'includes/title.inc.php'; ?>
<script type="text/javascript" src="js/face.js"></script>
<script>

</script>
</head>
<body>
<?php include_once 'includes/header.inc.php' ?>
<div id="register">
<h2>会员注册</h2>
<form action="register.php?action=register" method="post">
<dl>
    <dt>请认真填写一下信息</dt>
    <dd>用&nbsp;户&nbsp;&nbsp;名:<input type="text" name='username' class="text"/><span style="color: red;">(*)</span></dd>
    <dd>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:<input type="password" name='password' class="text"/><span style="color: red;">(*)</span></dd>
    <dd>确认密码:<input type="password" name='passwordt' class="text"/><span style="color: red;">(*)</span></dd>
    <dd>密码提示:<input type="text" name='question' class="text"/><span style="color: red;">(*)</span></dd>
    <dd>密码回答:<input type="text" name='answer' class="text"/><span style="color: red;">(*)</span></dd>
    <dd>性别:<input type="radio" name='sex' value="男" checked/>男<input type="radio" name='sex' value="女"/>女</dd>
    <dd class="face"><input type="hidden" name="face" value="" id="facevalue" ><img src="face/m19.gif" alt="头像选择" id="touxiang" /></dd>
    <dd>电子邮件:<input type="email" name="email" class="text"/></dd>
    <dd>&nbsp;&nbsp;&nbsp;QQ&nbsp;:&nbsp;&nbsp;<input type="text" class="text"/></dd>
    <dd>主页地址:<input type="text" name='address' value="http://" class="text" /></dd>
    <dd>验&nbsp;证&nbsp;码:&nbsp;<input type="text" name='code' class="yzm" /><img src="code.php" id='coder' onclick="this.src='code.php?'+new Date().getTime(); "/></dd>
    <dd><input class="submit" type="submit" value="注册"/></dd>
</dl>
</form>
</div>

<?php include_once 'includes/footer.inc.php'  ?>
</body>
</html>